{% extends "base.html" %}


{% block body_page %}
<script type="text/javascript">
$(document).ready(function(){
	setInterval( " refreshTime() ", 1000 );
})

function refreshTime(){
        var d=new Date()
	$.get("get_deploy_status/?r="+"123456"+"&t="+d.getTime(),function(result){
                $("#box").html(result);
            var str = result.substr(-4,8)
            if(str == '[ok!]' or str=='[ok!]\n'){
                window.clearInterval(timer);
                alert('完成部署');
            }
        });
   }
</script>
<form>
     <pre id="box">
     </pre>
  <button onclick="window.clearInterval(timer)">完成</button>
</form>
{% end %}
